﻿using ETA.Entity;
using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ETA.EntityMappings
{
    public class UploadFileMap : ClassMap<UploadFile>
    {
        public UploadFileMap()
        {
            Id(x => x.UploadFileId);
            Map(x => x.FileName);
            References(x => x.FileType).Column("FileTypeId")
           .Cascade.All();
        }
    }
}
